import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.TreeSet;


public class set {
	public static void main(String [] args)
	{
		Set hashSet = new HashSet();
		Set linkedHashSet = new LinkedHashSet();
		Set treeSet = new TreeSet();
		
		hashSet.add("blue");
		hashSet.add("red");
		hashSet.add("yellow");
		hashSet.add("orang");
		hashSet.add("white");
		
		
		linkedHashSet.add("blue");
	    linkedHashSet.add("red");
	    linkedHashSet.add("yellow");
	    linkedHashSet.add("orange");
	    linkedHashSet.add("white");
	     
	    treeSet.add("blue");
	    treeSet.add("red");
	    treeSet.add("yellow");
	    treeSet.add("orange");
	    treeSet.add("white");
	    System.out.println("items inside hashset\n");
	    
		Iterator hashsetIterator = hashSet.iterator();
		for(Object o  : hashSet)
		{
			System.out.println((String) o);
		}
		System.out.println("\n items insede linkedHashSet");
		for(Object  o : linkedHashSet)
		{
			System.out.println((String)o);
		}
		System.out.println("\n items inside treeSet");
		
		for(Object o : treeSet)
		{
			System.out.println((String)o );
			
	    
	    
}

}
}
